﻿<phone:PhoneApplicationPage
    x:Class="Conqueror.WP.SettingsPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:telerikPrimitives="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Primitives"
    xmlns:telerikInput="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d"
    shell:SystemTray.IsVisible="False">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <ScrollViewer>
            <StackPanel Margin="12">
                <Grid Height="66" Background="{StaticResource PhoneAccentBrush}">
                    <TextBlock Text="Settings and Preferences" Foreground="White"
                               FontSize="{StaticResource PhoneFontSizeMediumLarge}"
                               VerticalAlignment="Center" Margin="12,0"/>
                    <Image Source="/Image/Icons/settings.png"
                           HorizontalAlignment="Right"/>
                </Grid>

                <telerikPrimitives:RadExpanderControl Margin="0,6" IsExpanded="True">
                    <TextBlock Text="About"
                               FontSize="{StaticResource PhoneFontSizeLarge}"
                               Margin="0,6" VerticalAlignment="Center"/>
                    <telerikPrimitives:RadExpanderControl.ExpandableContent>
                        <Grid>
                            <StackPanel>
                                <TextBlock Text="Conqueror Version 5.0"/>
                                <TextBlock Text="Developed by: Sam Wronski"/>
                                <HyperlinkButton Content="New, Changed and Coming Soon!"
                                                 Foreground="{StaticResource PhoneAccentBrush}"
                                                 FontSize="{StaticResource PhoneFontSizeSmall}"
                                                 HorizontalAlignment="Left"
                                                 Margin="-12,0"/>
                                
                                <TextBlock Text="Hi, I'm Sam Wronski, the Developer of Conqueror. I've been working for the past 9 months to put together this new version of Conqueror and I think it went pretty well."
                                           TextWrapping="Wrap"
                                           Margin="0,24,0,0"
                                           FontSize="{StaticResource PhoneFontSizeSmall}"
                                           Foreground="{StaticResource PhoneSubtleBrush}"/>
                                <TextBlock Text="As you may be aware Conqueror is entirely free to use without ads or anything. That means your comments, feedback and general support is how I get paid for making Conqueror. If you like it and have something you'd like to see added send me some feedback, leave a review or shout out to your friends on Facebook and Twitter. If you really like what I've done here check out my other apps for your phone and Windows 8 PC."
                                           TextWrapping="Wrap"
                                           Margin="0,12,0,0"
                                           FontSize="{StaticResource PhoneFontSizeSmall}"
                                           Foreground="{StaticResource PhoneSubtleBrush}"/>
                                <HyperlinkButton
                                           Content="Donate to help support Conqueror"
                                           HorizontalAlignment="Center"
                                           Margin="0,12,0,0"
                                           FontSize="{StaticResource PhoneFontSizeSmall}"
                                           Foreground="{StaticResource PhoneAccentBrush}"
                                           Click="DonateToConqueror"/>
                            </StackPanel>
                        </Grid>
                    </telerikPrimitives:RadExpanderControl.ExpandableContent>
                </telerikPrimitives:RadExpanderControl>

                <telerikPrimitives:RadExpanderControl Margin="0,6">
                    <TextBlock Text="Background Notifications"
                               FontSize="{StaticResource PhoneFontSizeLarge}"
                               Margin="0,6" VerticalAlignment="Center"/>
                    <telerikPrimitives:RadExpanderControl.ExpandableContent>
                        <StackPanel>
                            <TextBlock Text="Get Notifications without opening Conqueror about games your up in. Will show notifications of games and update the live tile."
                                       TextWrapping="Wrap"/>
                            <TextBlock Text="Your Battery Saver settings may effect when and if you recieve background notifications."
                                       TextWrapping="Wrap" Margin="0,12,0,0"/>
                            <telerikPrimitives:RadToggleSwitch Margin="0,0,0,0"/>
                        </StackPanel>
                    </telerikPrimitives:RadExpanderControl.ExpandableContent>
                </telerikPrimitives:RadExpanderControl>

                <telerikPrimitives:RadExpanderControl Margin="0,6">
                    <TextBlock Text="Player Statistics"
                               FontSize="{StaticResource PhoneFontSizeLarge}"
                               Margin="0,6" VerticalAlignment="Center"/>
                    <telerikPrimitives:RadExpanderControl.ExpandableContent>
                        <StackPanel>
                            <TextBlock Text="Track your statistics over time and setup how they are stored."
                                       TextWrapping="Wrap"/>
                            <TextBlock Text="Conqueror records your score to show you detailed statistics. It updates this with each login but only saves one per day. How would you like it to choose the score to use?"
                                       TextWrapping="Wrap" Margin="0,12,0,0"/>
                            <telerikInput:RadListPicker x:Name="radListPicker"
                                                        VerticalAlignment="Top"
                                                        Margin="0">
                                <telerikInput:RadListPickerItem Content="Most Recent"/>
                                <telerikInput:RadListPickerItem Content="Least Recent"/>
                                <telerikInput:RadListPickerItem Content="Take Highest"/>
                                <telerikInput:RadListPickerItem Content="Take Lowest"/>
                                <telerikInput:RadListPickerItem Content="Average Scores"/>
                            </telerikInput:RadListPicker>
                        </StackPanel>
                    </telerikPrimitives:RadExpanderControl.ExpandableContent>
                </telerikPrimitives:RadExpanderControl>

                <telerikPrimitives:RadExpanderControl Margin="0,6">
                    <TextBlock Text="User Profile"
                               FontSize="{StaticResource PhoneFontSizeLarge}"
                               Margin="0,6" VerticalAlignment="Center"/>
                    <telerikPrimitives:RadExpanderControl.ExpandableContent>
                        <StackPanel>
                            <TextBlock Text="Customize your profile to make using Conqueror easier."
                                       TextWrapping="Wrap"/>
                            <Button Content="Logout" Margin="-12,0"
                                    Click="LogoutUser"/>
                        </StackPanel>
                    </telerikPrimitives:RadExpanderControl.ExpandableContent>
                </telerikPrimitives:RadExpanderControl>

                <telerikPrimitives:RadExpanderControl Margin="0,6">
                    <TextBlock Text="Feedback"
                               FontSize="{StaticResource PhoneFontSizeLarge}"
                               Margin="0,6" VerticalAlignment="Center"/>
                    <telerikPrimitives:RadExpanderControl.ExpandableContent>
                        <StackPanel>
                            <TextBlock Text="Your feedback helps me improve Conqueror and lets everyone else know what you think about it. If there is something you want added or something that doesn't work right, let me know."
                                       TextWrapping="Wrap"/>
                            <Button Content="Suggest a Feature" Margin="-12,0"/>
                            <Button Content="Report a Bug" Margin="-12,0"/>
                            <Button Content="Rate Conqueror on the Store" Margin="-12,0"/>
                        </StackPanel>
                    </telerikPrimitives:RadExpanderControl.ExpandableContent>
                </telerikPrimitives:RadExpanderControl>
            </StackPanel>
        </ScrollViewer>
    </Grid>

</phone:PhoneApplicationPage>